<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>分类系数设置</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        基础系数&nbsp;/&nbsp;
        <a lay-href="/product/citypriceratio/list.action">城市价格系数</a>&nbsp;/&nbsp;
        <zmn>快速设置</zmn>&nbsp;/&nbsp;
        <a th:href="|/product/citypriceratio/categoryRatioBatch.action?cityIdStr=${cityIdStr}&servCategId=${servCategId}&bizType=${bizType}|" th:text="|${bizType == 1 ? 'C' : bizType == 2 ? 'F': 'B'}分类系数|">分类系数</a>&nbsp;/&nbsp;
        <zmn th:text="${servCategName}">服务分类名字</zmn>
    </blockquote>

    <div class="layui-card">

        <form method="post" action="" class="layui-form" lay-filter="zmn-form">

            <div class="layui-split">&nbsp;</div>
            <div class="layui-form-item">
                <label class="layui-form-label">生效日期：</label>
                <div class="layui-input-inline">
                    <input type="text" id="effectiveDate" name="effectiveDate" placeholder="yyyy-MM-dd" class="layui-input"
                           autocomplete="off" readonly/>
                </div>
                <div class="layui-input-inline" style="width: 800px">
                    <!--                            <span class="layui-form-mid layui-word-aux">请仔细选择：新增渠道产品后，不可修改使用渠道</span>-->
                    <div class="layui-form-mid">
                        <label style="color: #9F9F9F;width: 800px">生效日期选择后，配置的数据将在该日期的0点生效，不填则默认次日0：00生效 </label>
                    </div>
                </div>
            </div>
            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label style="font-weight:bolder" class="layui-form-label" th:text="${categOneName}+'：'"></label>
                <div class="layui-input-inline" style="width: 60px;">
                    <input id="categOneRatioInput" style="text-align:right;height: 30px" type="text" name="categOneRatio" th:value="${categOneValue=='null'?'':categOneValue}" autocomplete="off" class="layui-input"/>
                </div>
                <div class="layui-input-inline">
                    <input type="checkbox" name="citypriceratiobox" lay-filter="citypriceratiobox" title="应用到所有二级分类" lay-skin="primary">
                </div>
            </div>

            <hr class="layui-bg-gray">

            <div class="layui-split">&nbsp;</div>
            <div class="layui-form-item">
                <th:block th:each="twoCategory : ${categTwos}">
                    <div class="layui-inline">
                        <label class="layui-form-label" th:text="${twoCategory.name}+'：'"></label>
                        <div class="layui-inline" style="width: 60px;">
                            <input style="text-align:right;height: 30px" type="text" name="categTwoRatio" th:title="${twoCategory.categId}" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </th:block>
            </div>
            <!--按钮栏
                    置于form标签内的最下方，
                    主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                    -->
            <div class="layui-form-item submit">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary"  lay-submit="" lay-filter="zmn-form-reset">重置</button>
                    <!--                    <a th:href="|/product/citypriceratio/categoryOutRatio.action?cityId=${cityId}&provinceId=${provinceId}&servCategId=${servCategId}&cityName=${cityName}|" class="layui-btn" text="取消">取消</a>-->
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
        </form>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    var json = {
        cityIdStr: [[${cityIdStr}]],
        servCategId: [[${servCategId}]],
        categOneId: [[${categOneId}]],
        bizType: [[${bizType}]],
        priceType: [[${priceType}]]
    };
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        city_price_category_ratio_batch_edit: "product/citypriceratio/batch/zmn.plat.citypriceratio.categoryratiobatch.edit",
    }).use(['index', 'city_price_category_ratio_batch_edit']);
</script>
</body>
</html>